package com.example.vo;

import com.example.entity.ProductInfo;
import lombok.Data;

/**
 * @Package: com.example.vo
 * @ClassName: ProductInfoVO
 * @Author: huangjk
 * @CreateTime: 2023/8/31 15:03
 * @Description:
 */
@Data
public class ProductInfoVO extends ProductInfo{
    Integer pageNum;
    Integer pageSize;


    public ProductInfo getSuper() {
        ProductInfo productInfo = new ProductInfo();
        productInfo.setId(this.getId());
        productInfo.setName(this.getName());
        productInfo.setTag(this.getTag());
        productInfo.setUnit(this.getUnit());
        productInfo.setDescription(this.getDescription());
        productInfo.setMessage(this.getMessage());
        productInfo.setSize(this.getSize());
        productInfo.setType(this.getType());
        productInfo.setTime(this.getTime());
        return productInfo;
    }
}
